package com.xoa.controller.task;


import com.xoa.model.task.TaskReminds;
import com.xoa.model.task.TaskType;
import com.xoa.service.task.TaskRemindsService;
import com.xoa.service.task.TaskTypeService;
import com.xoa.util.ToJson;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;

/**
 *<p>
 *  任务提醒控制层
 *</p>
 *@author 王禹萌
 *@since  2019-12-21
 */
@Controller
@RequestMapping("/taskReminds")
public class TaskRemindsController {

    @Autowired
    private TaskRemindsService taskRemindsService;

    /**
     * 增加任务提醒
     *
     * @param request
     * @param taskReminds
     * @return
     */
    @ResponseBody
    @RequestMapping("/addTaskReminds")
    public ToJson addTaskClass(HttpServletRequest request, TaskReminds taskReminds) {
        return taskRemindsService.addTaskReminds(request,taskReminds);
    }
}



















